# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

# Initial PKGBUILD from AUR.
# Old Maintainer: Sebastian Reuße <seb@wirrsal.net>
pkgname=grepcidr
pkgver=2.0
pkgrel=1
pkgdesc='Filter IPv4 and IPv6 addresses matching CIDR patterns.'
arch=('x86_64' 'aarch64')
url='http://www.pc-tools.net/unix/grepcidr/'
license=('GPL3')
depends=('glibc')
source=("https://www.pc-tools.net/files/unix/$pkgname-$pkgver.tar.gz")
sha512sums=(c592c7a96e5e711cb5ee10ea1f63907411f69c0014c0bdc845f4b026766b6466db624063af1411b994b53aa7e694fe99ecb1120c11543c5ea1b11afc9558f7aa)

build() {
  cd "$pkgname-$pkgver"

  make
}

package() {
  cd "$pkgname-$pkgver"

  make PREFIX=/usr DESTDIR="$pkgdir" install
}

